# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tumbler
pkgver=0.2.8
pkgrel=1
pkgdesc="D-Bus thumbnail service"
url="http://git.xfce.org/xfce/tumbler"
arch="all"
license="GPL-2.0-or-later"
makedepends="curl-dev dbus-glib-dev gtk+2.0-dev libjpeg-turbo-dev poppler-dev
	autoconf automake libtool xfce4-dev-tools"
subpackages="$pkgname-dev $pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/xfce-mirror/tumbler/archive/tumbler-$pkgver.tar.gz"
builddir="$srcdir/tumbler-tumbler-$pkgver"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="cb725633f0bfa699b00c3eb85c0c5d748b45d7c99f4c896c2ff585a79e92b85066820fc6f4a634da386cffc0d7fb09fcfe59bfe458a8a1d947f061e7b82d23e5  tumbler-0.2.8.tar.gz"
